package com.cgbl.cg.ui.project

import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.cgbl.cg.BR
import com.cgbl.cg.R
import com.cgbl.cg.databinding.AppActivityMyProjectDetailBinding
import com.cgbl.cg.vm.project.MyProjectDetailViewModel
import com.robot.base.base.activity.GLBaseActivity
import com.robot.base.configs.AppConstants

@Route(path = AppConstants.Router.PROJECT.A_MY_PROJECT_DETAIL)
class MyProjectDetailActivity :
    GLBaseActivity<AppActivityMyProjectDetailBinding, MyProjectDetailViewModel>() {
    var id = ""
    override fun initContentView(savedInstanceState: Bundle?): Int =
        R.layout.app_activity_my_project_detail

    override fun initVariableId(): Int = BR.viewModel

    override fun initComponents() {
        addSingleTitleBar("")
    }

    override fun initData() {
        super.initData()
        viewModel.id = id
        viewModel.getData()
    }
    override fun initParam() {
        super.initParam()
        id = intent.getStringExtra(AppConstants.BundleKey.ID)?:""
    }
}